home *** CD-ROM | disk | FTP | other *** search
- %%BeginFile: lw8_level2_patterns-2.0
- /pmtx Z
- /BGnd Z
- /FGnd Z
- /PaintData Z
- /PatternMtx Z
- /PatHeight Z
- /PatWidth Z
- /$d Z
- /savecolor 4 array def
- /savecolorspace Z
- /patDecode Z
- /:a{
- mark 0 0 0 currentcolor savecolor astore pop cleartomark
- /savecolorspace currentcolorspace store
- $c setcolorspace
- /patDecode
- [currentcolor counttomark
- dup 2 add 1
- roll
- cleartomark[exch
- {0 1}repeat]
- def
- }bd
- /:e{
- savecolorspace setcolorspace
- mark savecolor aload pop setcolor cleartomark
- }bd
- /initQDpatterns
- {
- gS
- initmatrix
- mT dup 4 get exch 5 get :T
- 1 0 dtransform round exch round exch idtransform
- dup mul exch dup mul exch add sqrt
- 0 1 dtransform round exch round exch idtransform
- dup mul exch dup mul exch add sqrt
- neg
- scale
- 0
- por not{90 add}if
- normland{180 add}if
- rotate
- matrix currentmatrix
- gR
- /pmtx xs
- :a
- }bd
- /:t
- {
- 14 dict begin
- /BGnd xdf
- /FGnd xdf
- /PaintData xdf
- /PatternType 1 def
- /PaintType 1 def
- /BBox[0 0 1 1]def
- /TilingType 1 def
- /XStep 1 def
- /YStep 1 def
- /PatternMtx[24 0 0 24 0 0]def
- /PaintProc
- BGnd null ne
- {
- {
- begin
- BGnd aload pop :F
- 0 0 1 1 rF
- FGnd aload pop :F
- 24 24 T PatternMtx PaintData imagemask
- end
- }
- }{
- {
- begin
- FGnd aload pop :F
- 24 24 T PatternMtx PaintData imagemask
- end
- }
- }ifelse
- def
- currentdict
- PatternMtx
- end
- $c setcolorspace
- gS pmtx setmatrix makepattern gR
- }bd
- /:u
- {
- 14 dict begin
- /$d 8 dict def
- /PatternType 1 def
- /PaintType 1 def
- /BBox[0 0 1 1]def
- /TilingType 1 def
- /XStep 1 def
- /YStep 1 def
- /PaintData xdf
- /PatHeight xdf
- /PatWidth xdf
- /PatternMtx[PatWidth 0 0 PatHeight 0 0]def
- $d begin
- /ImageType 1 def
- /MultipleDataSource F def
- /Height PatHeight def
- /Width PatWidth def
- /Decode patDecode def
- /ImageMatrix PatternMtx def
- /DataSource PaintData def
- /BitsPerComponent 8 def
- end
- /PaintProc
- {
- begin
- $d image
- end
- }def
- currentdict
- PatternMtx
- end
- gS $c setcolorspace pmtx setmatrix makepattern gR
- }bd
- /bk[1 1 1]def
- /fg[0 0 0]def
- /:b{
- :t
- setpattern
- pop pop
- }bd
- /:d{
- :t
- setpattern
- 10{pop}repeat
- }bd
- /:c{
- :u
- setpattern
- 10{pop}repeat
- }bd
- %%EndFile
-